| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

BoundingBoxWrapper.h
1 // BoundingBoxWrapper.h
3 //
5
6 namespace nkAstraeus::nkGraphicsWrap
7 {
11 class BoundingBoxWrapper final
12 {
13 public :
14
15 // Environment update
21 static void updateEnvironment (nkScripts::Environment* env) ;
22
23 // Callbacks
24 // Constructors, destructor
35 static void* constructor (const nkScripts::DataStack& stack) ;
46 static nkScripts::OutputValue newCube (const nkScripts::DataStack& stack) ;
57 static nkScripts::OutputValue newBox (const nkScripts::DataStack& stack) ;
63 static void destructor (void* toDestroy) ;
64 // Getters
75 static nkScripts::OutputValue getCenter (const nkScripts::DataStack& stack) ;
76 // Checks
87 static nkScripts::OutputValue checkAgainst (const nkScripts::DataStack& stack) ;
88 } ;
89 }
nkScripts::Environment
Defines an environment in which scripts can execute.
Definition: Environment.h:14
nkAstraeus::nkGraphicsWrap::BoundingBoxWrapper::constructor
static void * constructor(const nkScripts::DataStack &stack)
nkMemory::BufferView
A view over data.
Definition: BufferView.h:18
nkAstraeus::nkGraphicsWrap::BoundingBoxWrapper::checkAgainst
static nkScripts::OutputValue checkAgainst(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::BoundingBoxWrapper::destructor
static void destructor(void *toDestroy)
nkAstraeus::nkGraphicsWrap::BoundingBoxWrapper::getCenter
static nkScripts::OutputValue getCenter(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::BoundingBoxWrapper::updateEnvironment
static void updateEnvironment(nkScripts::Environment *env)
nkScripts::FunctionParameter
A function parameter, used within the stack of arguments.
Definition: FunctionParameter.h:25
nkAstraeus::nkGraphicsWrap
Encompasses the wrapping of nkGraphics for scripting.
Definition: BoundingBoxWrapper.h:7
nkAstraeus::nkGraphicsWrap::BoundingBoxWrapper
Wraps a nkGraphics::BoundingBox and offers functions for use in scripting.
Definition: BoundingBoxWrapper.h:12
nkAstraeus::nkGraphicsWrap::BoundingBoxWrapper::newCube
static nkScripts::OutputValue newCube(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::BoundingBoxWrapper::newBox
static nkScripts::OutputValue newBox(const nkScripts::DataStack &stack)